<script setup lang="ts">
import { seoConfig } from '~/config/seo'

useSeoMeta({
  title: seoConfig.products.intlSms.title,
  description: seoConfig.products.intlSms.description,
  keywords: seoConfig.products.intlSms.keywords
})

// 产品优势数据
const advantages = [
  {
    icon: 'lucide:globe',
    title: '全球覆盖',
    description: '覆盖全球200多个国家和地区，与全球用户实现无障碍连接'
  },
  {
    icon: 'lucide:ship',
    title: '出海首选',
    description: '专为出海企业打造的一站式通讯解决方案，简单易用'
  },
  {
    icon: 'lucide:shield-check',
    title: '安全稳定',
    description: '企业级安全保障，稳定可靠的国际短信通道'
  },
  {
    icon: 'lucide:zap',
    title: '快速送达',
    description: '与全球运营商直连，确保短信快速送达用户'
  },
  {
    icon: 'lucide:wallet',
    title: '透明计费',
    description: '按量计费，价格透明，支持多种套餐选择'
  },
  {
    icon: 'lucide:headphones',
    title: '7x24支持',
    description: '全天候技术支持，确保海外业务稳定运行'
  }
]

// 行业应用场景数据
const scenarios = [
  {
    icon: 'lucide:shopping-bag',
    title: '跨境电商',
    description: '订单通知、物流跟踪、账户验证、营销推广，服务全球用户',
    color: 'from-blue-500 to-cyan-500'
  },
  {
    icon: 'lucide:gamepad-2',
    title: '游戏出海',
    description: '账号注册、登录验证、活动通知、充值提醒，触达海外玩家',
    color: 'from-purple-500 to-pink-500'
  },
  {
    icon: 'lucide:smartphone',
    title: '社交应用',
    description: '用户注册、身份验证、消息通知、好友提醒，连接全球社交',
    color: 'from-green-500 to-emerald-500'
  },
  {
    icon: 'lucide:plane',
    title: '旅游出行',
    description: '预订确认、行程变更、登机提醒、服务通知，服务全球旅客',
    color: 'from-orange-500 to-red-500'
  },
  {
    icon: 'lucide:landmark',
    title: '金融科技',
    description: '交易验证、账户通知、风险提示、支付确认，保障海外金融',
    color: 'from-indigo-500 to-blue-500'
  },
  {
    icon: 'lucide:graduation-cap',
    title: '在线教育',
    description: '课程提醒、作业通知、成绩查询、活动邀请，教育全球学员',
    color: 'from-yellow-500 to-orange-500'
  }
]
</script>

<template>
  <div class="min-h-screen">
    <!-- 顶部横幅 -->
    <ProductHero
      title="国际短信"
      description="便于出海企业简单、安全、稳定的一站式通讯解决方案与您的全球用户实现无障碍的即时通讯连接"
    />

    <!-- 产品优势 -->
    <section class="py-16 md:py-24 bg-gray-50">
      <div class="mx-auto px-4 max-w-6xl">
        <div class="text-center mb-16">
          <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">
            产品优势
          </h2>
          <p class="text-lg text-gray-600">
            专业的国际短信服务，助力企业全球化
          </p>
        </div>

        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8">
          <div
            v-for="(advantage, index) in advantages"
            :key="index"
            class="bg-white rounded-2xl p-6 md:p-8 shadow-sm hover:shadow-lg transition-all group"
          >
            <div class="w-14 h-14 bg-gradient-to-br from-blue-500 to-cyan-500 rounded-xl flex items-center justify-center mb-6 group-hover:scale-110 transition-transform">
              <Icon :name="advantage.icon" class="w-7 h-7 text-white" />
            </div>
            <h3 class="text-xl font-bold text-gray-900 mb-3">
              {{ advantage.title }}
            </h3>
            <p class="text-gray-600 leading-relaxed">
              {{ advantage.description }}
            </p>
          </div>
        </div>
      </div>
    </section>

    <!-- 行业应用场景 -->
    <section class="py-10 md:py-15 bg-white">
      <div class="mx-auto px-4 max-w-6xl">
        <div class="text-center mb-8 md:mb-10">
          <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">
            行业应用场景
          </h2>
          <p class="text-lg text-gray-600">
            助力各行业企业开拓全球市场
          </p>
        </div>

        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8">
          <div
            v-for="(scenario, index) in scenarios"
            :key="index"
            class="group relative bg-white rounded-2xl p-6 md:p-8 border-2 border-gray-100 hover:border-transparent hover:shadow-xl transition-all overflow-hidden"
          >
            <!-- 悬停时的渐变背景 -->
            <div 
              class="absolute inset-0 bg-gradient-to-br opacity-0 group-hover:opacity-10 transition-opacity"
              :class="scenario.color"
            />
            
            <div class="relative">
              <div 
                class="w-14 h-14 rounded-xl flex items-center justify-center mb-6 bg-gradient-to-br"
                :class="scenario.color"
              >
                <Icon :name="scenario.icon" class="w-7 h-7 text-white" />
              </div>
              <h3 class="text-xl font-bold text-gray-900 mb-3">
                {{ scenario.title }}
              </h3>
              <p class="text-gray-600 leading-relaxed">
                {{ scenario.description }}
              </p>
            </div>
          </div>
        </div>
      </div>
    </section>

    <!-- CTA 部分 -->
    <CallToAction />
  </div>
</template>

